package com.jia.train.global.page;

import jakarta.validation.constraints.Max;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import org.apache.commons.lang3.builder.EqualsBuilder;
import org.apache.commons.lang3.builder.HashCodeBuilder;

@Data
public class PageRequest {

    @NotNull(message = "【页码】不可以为空")
    private Integer page;

    @NotNull(message = "【每页条数】不可以为空")
    @Max(value = 100, message = "【每页条数】不能超过100")
    private Integer size;
}
